package com.itwill.ecom.cart;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

public interface CartService {
	
	/** Basic CRUD **/
	//CartBeans 생성
	public abstract void createCart(CartBeans cartBeans)throws Exception;

	//CartBeans 찾기
	public abstract CartBeans getCart(int cart_no)throws Exception;

	//CartBeans 수정
	public abstract void updateCart(CartBeans cartBeans)throws Exception;

	//CartBeans 삭제
	public abstract void deleteCart(int cartBeans)throws Exception;

	/** Custom CRUD **/
	//멤버번호로 카트리스트 찾기
	public abstract List<CartBeans> getCartListByMemberNo(int no)throws Exception;

	//물품번호로 카트리스트 찾기
	public abstract List<CartBeans> getCartListByProductNo(int no)throws Exception;

	//멤버번호로 카트리스트 삭제 [장바구니비우기]
	public abstract void deleteCartListByMemberNo(int no)throws Exception;

	//카트리스트받아오기
	public abstract List<CartBeans> getList(int no)throws Exception;

}